<?php
/**
 * Created by PhpStorm.
 * User: fengsen
 * Date: 16-7-14
 * Time: 上午10:58
 */
define("SERVER_NAME","localhost");
define("USER_NAME","root");
define("DB_NAME","papacamera");
define("PASSWORD","");

$connect = mysql_connect(SERVER_NAME,USER_NAME,PASSWORD);

if(!$connect){
    die("connect error".mysql_error());
}
echo "数据库链接成功";
mysql_select_db(DB_NAME,$connect);